﻿namespace PlaylistCopy.Extensions
{
    using CuttingEdge.Conditions;
    using PlaylistCopy.Services;
    using System.Windows;
    using Condition = CuttingEdge.Conditions.Condition;

    public static class DialogServiceExtensions
    {
        public static void ErrorMessageBox(this IDialogService dialogService, string title, string message)
        {
            Condition.Requires(dialogService, "dialogService").IsNotNull();

            dialogService.ShowDialog(title, message, MessageBoxButton.OK, MessageBoxImage.Error);
        }
    }
}
